From 2a5194b6356ac58de144eb436f1d68ec216bce19 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 9 Feb 2015 16:14:03 +0100 Subject: [PATCH] cssnode: Make widget node not copy the path Instead, use gtk_widget_get_path() which makes GtkWidget cache the path. This is a temporary solution until we can get rid of widget paths. This increases memory usage quite noticably. --- gtk/gtkcsswidgetnode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index 46785b4b50..b2790815ed 100644 --- a/gtk/gtkcsswidgetnode.c +++ b/gtk/gtkcsswidgetnode.c @@ -178,10 +178,8 @@ gtk_css_widget_node_init_matcher (GtkCssNode *node, if (widget_node->widget == NULL) return FALSE; - *path_out = _gtk_widget_create_path (widget_node->widget); - return _gtk_css_matcher_init (matcher, - *path_out, + gtk_widget_get_path (widget_node->widget), gtk_css_node_get_declaration (node)); } -- 2.30.2